<template>
    <div id="loading" v-show="show"> 
        <div>{{msg}}</div>
    </div>
</template>

<script>
export default {
    name: 'loading',
    props:{
        show:Boolean,
        msg:String
    },
    data() {
        return {};
    },
    created() {
    },
    methods: {

    },
    //组件挂载
    components: {},
    //计算属性
    computed: {},
    //过滤器
    filters: {},
};
</script>

<style lang="scss" scoped>
#loading{
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    div{
        background-color: rgba($color: #000000, $alpha: .5);
        color: fff;
        border-radius: 5px;
        padding: 5px 20px;
    }
}
</style>
